let paramJson = {
	/**
	 * @param {Object} that 上下文
	 * @param {Object} status 状态  保存 提交
	 * @param {Object} pushtype 状态 退出 投入
	 */
	getManTab:function(that,status,pushtype){
		let dataParam = {};
		let userInfor = {};
		dataParam.plateOperate = {};
		dataParam.infoListParam = [];
		dataParam.plateOperate.operateType = pushtype == "in" ? "1" : "0"; //投入退出类型1投入0退出
		dataParam.plateOperate.operateStaffCodeName = that.getUserInfo().userName;//退出操作人/投入操作人,工号+姓名
		dataParam.plateOperate.operateStaffCode = that.getUserInfo().userId;//退出操作人/投入操作人,工号
		dataParam.plateOperate.operateStaffName = that.getUserInfo().name;//退出操作人/投入操作人,姓名
		
		dataParam.plateOperate.tutelageStaffCodeName = that.$refs.personselect.person;//退出监护人/投入监护人,工号+姓名
		dataParam.plateOperate.tutelageStaffCode = that.$refs.personselect.personids;//退出监护人/投入监护人,工号
		dataParam.plateOperate.tutelageStaffName = that.$refs.personselect.person.split("]")[1];//退出监护人/投入监护人,姓名
		
		dataParam.plateOperate.areaCompanyCode = that.getUserInfo().companyCode;//分公司编号
		dataParam.plateOperate.stationCode = that.getUserInfo().stationCode;//场站编号
		dataParam.plateOperate.newAreaCode = that.getUserInfo().companyNewCode;//新能源区域编码
		dataParam.plateOperate.newStationCode = localStorage.getItem('neiosStationCode');//新能源场站编码
		dataParam.plateOperate.status = status;//保存存21
		dataParam.plateOperate.plateOperateId = that.getUUid();//主表主键ID UUID
		
		dataParam.plateOperate.source = "local";
		dataParam.plateOperate.dataStatus = "1";
		dataParam.plateOperate.dataSource = "NEIOS_APP"+localStorage.getItem("currVersion")
		dataParam.plateOperate.client = "NEIOS";
		dataParam.plateOperate.createBy = that.getUserInfo().userId;//登录人Id
		dataParam.plateOperate.createStaffName = that.getUserInfo().name;//登录人姓名
		dataParam.plateOperate.modifyBy = that.getUserInfo().userId;//登录人Id
		dataParam.plateOperate.modifyStaffName = that.getUserInfo().name;//登录人姓名
		
		if(status == 32){
			dataParam.plateOperate.workId = that.getUUid();
			if(pushtype == "in"){
				dataParam.plateOperate.workDesc = "对保护压板投入信息进行修改";
			}
			if(pushtype == "out"){
				dataParam.plateOperate.workDesc = "对保护压板退出信息进行修改";
			}
			dataParam.workType = "0205"
		}
		userInfor.userId = that.getUserInfo().userId;
		userInfor.name = that.getUserInfo().name;
		dataParam.currentUser = userInfor;
		dataParam.fileIds = that.fileIds;//文件上传返回的 id 字符
		
		return dataParam;
	},
	getInfoList:function(list,dataParam,stataus){
		let ListData = list;
		ListData.forEach((item,i)=>{
			let GV = 'selectitem'+i
			item.plateCode = that.$refs[GV][0].formInline.member;
			
			item.source = "local";
			item.dataStatus = "1";
			item.dataSource = "NEIOS_APP"+localStorage.getItem("currVersion");
			item.client = "NEIOS";
			item.createBy = dataParam.plateOperate.createBy;
			item.createStaffName = dataParam.plateOperate.createStaffName;
			item.areaCompanyCode = dataParam.plateOperate.areaCompanyCode;
			item.newAreaCode = dataParam.plateOperate.newAreaCode;
			item.stationCode = dataParam.plateOperate.stationCode;
			item.newStationCode = dataParam.plateOperate.newStationCode;
			item.type = "add";
			item.showTree = false;
			if(item.plateOperateInfoId == null || item.plateOperateInfoId == undefined){
				item.plateOperateInfoId = 	that.getUUid();//从表主键ID",退出是新的，投入要看有没有退出时的ID从校验接口获取
			}
			item.status = dataParam.plateOperate.status;
				if(stataus == "in"){
					item.inOperateId = dataParam.plateOperate.plateOperateId;				
				}
				debugger
				if(stataus == "out"){
					item.outOperateId = dataParam.plateOperate.plateOperateId;		
				}
			item.modifyBy = dataParam.plateOperate.modifyBy;
			item.modifyStaffName = dataParam.plateOperate.modifyStaffName;
			
			dataParam.infoListParam.push(item)
		})
		return dataParam;
	},
	/**
	 * 获取主表数据 数据——编辑
	 * @param {Object} param 后台返回的参数
	 * @param {Object} dataStatus 数据状态 1 新增修改 0 无效/删除
	 * @param {Object} edit 操作类型 0 新增 1 编辑
	 */
	getEditObj:function(param,dataStatus,edit,status,pushtype,that){
		debugger
		let dataParam = {};
		dataParam.plateOperate = {};
		dataParam.infoListParam = [];
		//人员信息 获取
		let persionData = JSON.parse(localStorage.getItem("neiosUser"));
		//获取 uuid 
		let uuid = mui.neiosCommon.getUuidv4();
		dataParam.plateOperate.status = status; //状态 固定传21
		dataParam.plateOperate.operateStaffCodeName = that.getUserInfo().userName;//退出操作人/投入操作人,工号+姓名
		dataParam.plateOperate.operateStaffCode = that.getUserInfo().userId;//退出操作人/投入操作人,工号
		dataParam.plateOperate.operateStaffName = that.getUserInfo().name;//退出操作人/投入操作人,姓名
		
		dataParam.plateOperate.tutelageStaffCodeName = that.$refs.personselect.person;//退出监护人/投入监护人,工号+姓名
		dataParam.plateOperate.tutelageStaffCode = that.$refs.personselect.personids;//退出监护人/投入监护人,工号
		dataParam.plateOperate.tutelageStaffName = that.$refs.personselect.person.split("]")[1];//退出监护人/投入监护人,姓名
		if(pushtype == "in"){
			dataParam.plateOperate.plateOperateId = param[0].inOperateId;//主键Id
		}
		if(pushtype == "out"){
			dataParam.plateOperate.plateOperateId = param[0].outOperateId;//主键Id
		}
		dataParam.plateOperate.type = edit == 0 ? "" : "edit";//如果是新增数据就不传，如果是编辑数据就传edit
		dataParam.plateOperate.modifyBy = persionData.userId;//当前登陆人工号
		dataParam.plateOperate.modifyStaffName = that.getUserInfo().name;//登录人姓名
		dataParam.plateOperate.areaCompanyCode = persionData.companyCode;//分公司编码--新增时候传，编辑不传
		dataParam.plateOperate.stationCode = persionData.stationCode;//场站编码--新增时候传，编辑不传
		dataParam.plateOperate.dataStatus = '1';////数据状态1有效0无效
		dataParam.plateOperate.dataSource = 'NEIOS_APP'+localStorage.getItem("currVersion");//(edit == '0'? "NEIOS_APP":'');//固定值--新增时候传，编辑不传
		dataParam.plateOperate.client = 'NEIOS';//(edit == '0'? "NEIOS":'');//固定值--新增时候传，编辑不传
		dataParam.plateOperate.createBy = persionData.userId;//当前登录人编号--新增时候传，编辑不传
		dataParam.plateOperate.createStaffName = that.getUserInfo().name;//登录人姓名
		dataParam.plateOperate.newAreaCode  = persionData.companyNewCode;//新能源分公司编码
		dataParam.plateOperate.newStationCode  = localStorage.getItem('neiosStationCode') == null ? '1020' : localStorage.getItem('neiosStationCode');// persionData.stationNewCode;//新能源场站编码
		// that.paramData = paramData;
		if(status == 32){
			dataParam.plateOperate.workId = that.getUUid();
			if(pushtype == "in"){
				dataParam.plateOperate.workDesc = "对保护压板投入信息进行修改";
			}
			if(pushtype == "out"){
				dataParam.plateOperate.workDesc = "对保护压板退出信息进行修改";
			}
			dataParam.workType = "0205"
		}
		
		dataParam.fileIds = that.fileIds;//文件上传返回的 id 字符
		dataParam.dataStatus = dataStatus;
		param.forEach((item,i)=>{
			item.modifyStaffName = that.getUserInfo().name;//登录人姓名
			item.createStaffName = that.getUserInfo().name;//登录人姓名
		})
		// dataParam.infoListParam = param;
		
		return dataParam;
	}
	
}